<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>
[#include "/admin/include/admin_static.htm"]
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K
                    .create(
                            'textarea[name="content"]',
                            {
                                cssPath: '${path}/resources/plug/kindeditor/plugins/code/prettify.css',
                                uploadJson: '${path}/system/upload/submit.aspx',
                                fileManagerJson: '${path}/resources/plug/kindeditor/jsp/file_manager_json.jsp',
                                allowFileManager: true,
                                afterCreate: function () {
                                    var self = this;
                                    K.ctrl(document, 13, function () {
                                        self.sync();
                                        document.forms['example'].submit();
                                    });
                                    K.ctrl(self.edit.doc, 13, function () {
                                        self.sync();
                                        document.forms['example'].submit();
                                    });
                                },
                                afterBlur: function () {
                                    this.sync();
                                }
                            });
            prettyPrint();
        });
    </script>

    <script type="text/javascript">
        $(function () {
            layui.use(['form', 'layer','upload','layedit'], function () {



            });
        });
    </script>

</head>
<body>
<div class="main_admin_content">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>文章类别</legend>
    </fieldset>
    <form name="form1" method="post" class="layui-form"
          action="${path}/admin/article/edit.aspx">
        <input type="hidden" value="${(newsNotices.id)!''}" name="id"/>
        <div class="layui-form-item">
            <label class="layui-form-label">标题：</label>
            <div class="layui-input-block" style="margin-left: 150px">

                <input type="text" name="title" value="${(newsNotices.title)!''}" class="layui-input"/>
            </div>
        </div>
        <input name="orderid" type="text" id="orderid"
               value="${(newsNotices.orderid)!'0'}"style="display: none"/>
        <div class="layui-form-item">
            <label class="layui-form-label">类型：</label>
            <div class="layui-input-block" style="margin-left: 150px">
            [@u.select list=newstypelist listKey="id" listValue="name" value="${(newsNotices.type)!''}"  id="type" name="type"class="layui-input" /]
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block" style="margin-left: 150px">
                <select name="status" id="status" class="layui-input">
                    <option value="1">显示</option>
                    <option value="0">隐藏</option>
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">内容：</label>
            <div class="layui-input-block" style="margin-left: 150px">
                <textarea name="content" cols="100" rows="8"
                          style="width:700px;height:200px;visibility:hidden;" class="layui-textarea">${(newsNotices.content)!''}</textarea>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button lay-submit lay-filter="saveForm" class="layui-btn" style="width: 280px;margin-top:3px;">保存</button>
            </div>
        </div>

    </form>
</div>
</body>
</html>